{{template "user_center_layout.html" . }}

{{define "right_content"}}
	<div class="right_content clearfix">
			<div class="info_con clearfix">
			<h3 class="common_title2">基本信息</h3>
					<ul class="user_info_list">
							<li><span>用户名：</span>{{.userName}}</li>
						{{if eq "" .phoneNum .address}}
							<li><span>联系方式：</span>待完善</li>
							<li><span>联系地址：</span>待完善</li>
						{{else}}
							<li><span>联系方式：</span>{{.phoneNum}}</li>
							<li><span>联系地址：</span>{{.address}}</li>
						{{end}}
					</ul>
			</div>
			
			<h3 class="common_title2">最近浏览</h3>
			<div class="has_view_list">
		<ul class="goods_type_list clearfix">
			{{range .goods}}
				<li>
					<a href="/goodsDetail?id={{.Id}}"><img src="http://94.191.18.219:8888/{{.Image}}"></a>
					<h4><a href="detail.html">{{.Desc}}</a></h4>
					<div class="operate">
						<span class="prize">￥{{.Price}}</span>
						<span class="unit">{{.Price}}/{{.Unite}}</span>
						<a href="#" class="add_goods" title="加入购物车"></a>
					</div>
				</li>
			{{end}}
		</ul>
	</div>
	</div>
{{end}}

